package com.xiaobai.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @Author
 * @Description
 * @Date created in 11:11 2025/2/6
 */
@Component
@RefreshScope()
public class UserInfoConfig {
    @Value("${user.zname:zhangsan}")
    private String userName;
    @Value("${user.zage:18}")
    private Integer userAge;
}
